{extend name="base" /}

{block name="title"}管理员列表{/block}

{block name="main"}
	<!-- Content Wrapper. Contains page content -->
	<div class="content-wrapper">
		<!-- Content Header (Page header) -->
		<section class="content-header">
			<h1>管理员列表 <small>王者荣耀</small></h1>
			<ol class="breadcrumb">
				<li><a href="/shuashuale"><i class="fa fa-home"></i> 首页</a></li>
				<li><a href="/shuashuale/index"> 管理员管理</a></li>
				<li class="active">管理员列表</li>
			</ol>
		</section>

		<!-- Main content -->
		<section class="content container-fluid">
			<div class="box">
				<div class="box-header with-border">
					<h3 class="box-title">Bordered Table</h3>
				</div>
				<!-- /.box-header -->
				<div class="box-body table-responsive no-padding">
					<table class="table table-bordered">
						<tr>
							<th>编号</th>
							<th>账号</th>
							<th>状态</th>
							<th>操作</th>
						</tr>
						{volist name='admins' id='admin'}
						<tr>
							<td>{$admin.admin_id}</td>
							<td>{$admin.admin_name}</td>
							<td>{$admin.status}</td>
							<td>
								{switch name="admin.status" }
									{case value="正常"}
									<a class="btn btn-success btn-xs btn-flat" href="/shuashuale/ban?admin_id={$admin.admin_id}&status=1">禁止</a>
									{/case}
									{case value="已禁止"}
									<a class="btn btn-warning btn-xs btn-flat" href="/shuashuale/ban?admin_id={$admin.admin_id}&status=0">解禁</a>
									{/case}
								{/switch}
								<a class="btn btn-primary btn-xs btn-flat" href="/shuashuale/update?admin_id={$admin.admin_id}">修改</a>
								<a class="btn btn-danger btn-xs btn-flat" href="/shuashuale/delete?admin_id={$admin.admin_id}">删除</a>
							</td>
						</tr>
						{/volist}
					</table>
				</div>
				<!-- /.box-body -->
				<div class="box-footer clearfix">
					{$admins->render()}
				</div>
			</div>
		</section>
		<!-- /.content -->
	</div>
	<!-- /.content-wrapper -->
{/block}